package com.ncs.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yinyin
 * @create 2021/07/14 下午 7:34
 */
@Data
public class Product {
    private Long id;
    private String productName;
    private Long dir_id;
    private Double salePrice;
    private String supplier;
    private String brand;
    private Double cutoff;
    private Double costPrice;

    public Product(){}
    public Product(Long id, String productName, Long dir_id, Double salePrice, String supplier, String brand, Double cutoff, Double costPrice) {
        this.id = id;
        this.productName = productName;
        this.dir_id = dir_id;
        this.salePrice = salePrice;
        this.supplier = supplier;
        this.brand = brand;
        this.cutoff = cutoff;
        this.costPrice = costPrice;
    }

    public Product(String productName, Long dir_id, Double salePrice, String supplier, String brand, Double cutoff, Double costPrice) {
        this.productName = productName;
        this.dir_id = dir_id;
        this.salePrice = salePrice;
        this.supplier = supplier;
        this.brand = brand;
        this.cutoff = cutoff;
        this.costPrice = costPrice;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", dir_id=" + dir_id +
                ", salePrice=" + salePrice +
                ", supplier='" + supplier + '\'' +
                ", brand='" + brand + '\'' +
                ", cutoff=" + cutoff +
                ", costPrice=" + costPrice +
                '}';
    }
}
